
public class MessageManager {
	private static String messageStringFromLogic;
	private static String messageStringFromFileManager;
	private static String messageStringToGUI;
	
	public MessageManager(){
		
	}
	
	public void logicSendMessageToGUI(String newMessage) {
		messageStringFromLogic = newMessage;
		setMessageStringFromLogicToGUI();
	}
	
	public void fileManagerSendMessgeToGUI(String newMessage) {
		messageStringFromFileManager = newMessage;
		setMessageStringFromFileManagerToGUI();
	}
	
	public String getMessageStringToGUI() {
		return messageStringToGUI;
	}
	
	private void setMessageStringFromLogicToGUI() {
		messageStringToGUI = messageStringFromLogic; 
	}
	
	private void setMessageStringFromFileManagerToGUI() {
		messageStringToGUI = messageStringFromFileManager;
	}

}
